import request from '@/utils/request'

// 查询护理员与床位中间列表
export function listCaregiverBedBinding(query) {
  return request({
    url: '/le/caregiverBedBinding/list',
    method: 'get',
    params: query
  })
}

// 查询护理员与床位中间详细
export function getCaregiverBedBinding(id) {
  return request({
    url: '/le/caregiverBedBinding/' + id,
    method: 'get'
  })
}

// 新增护理员与床位中间
export function addCaregiverBedBinding(data) {
  return request({
    url: '/le/caregiverBedBinding',
    method: 'post',
    data: data
  })
}

// 修改护理员与床位中间
export function updateCaregiverBedBinding(data) {
  return request({
    url: '/le/caregiverBedBinding',
    method: 'put',
    data: data
  })
}

// 删除护理员与床位中间
export function delCaregiverBedBinding(id) {
  return request({
    url: '/le/caregiverBedBinding/' + id,
    method: 'delete'
  })
}
